

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main" />
        <title>修改党员信息</title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><g:link class="home" action="list">回到党员信息列表</g:link></span>
        </div>
        <div class="body">
            <h1>修改党员信息</h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${partMemberInfoInstance}">
            <div class="errors">
                <g:renderErrors bean="${partMemberInfoInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:form method="post" >
                <input type="hidden" name="id" value="${partMemberInfoInstance?.id}" />
                <input type="hidden" name="version" value="${partMemberInfoInstance?.version}" />
                <div class="dialog">
                    <table>
                        <tbody>
							 <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="department">支部:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:partMemberInfoInstance,field:'department','errors')}">
                                    <input type="text" id="department" name="department" value="${fieldValue(bean:partMemberInfoInstance,field:'department')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="name">姓名:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:partMemberInfoInstance,field:'name','errors')}">
                                    <input type="text" id="name" name="name" value="${fieldValue(bean:partMemberInfoInstance,field:'name')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="sexType">性别:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:partMemberInfoInstance,field:'sexType','errors')}">
                                    <g:select id="sexType" name="sexType" from="${partMemberInfoInstance.constraints.sexType.inList}" value="${partMemberInfoInstance.sexType}" ></g:select>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="nation">民族:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:partMemberInfoInstance,field:'nation','errors')}">
                                    <input type="text" id="nation" name="nation" value="${fieldValue(bean:partMemberInfoInstance,field:'nation')}"/>
                                </td>
                            </tr> 
							
							 <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="birthday">出生日期:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:partMemberInfoInstance,field:'birthday','errors')}">
                                    <g:datePicker name="birthday" value="${partMemberInfoInstance?.birthday}" precision="day" ></g:datePicker>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="eduBackground">学历:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:partMemberInfoInstance,field:'eduBackground','errors')}">
                                    <input type="text" id="eduBackground" name="eduBackground" value="${fieldValue(bean:partMemberInfoInstance,field:'eduBackground')}"/>
                                </td>
                            </tr> 
							
							<tr class="prop">
                                <td valign="top" class="name">
                                    <label for="workDate">工作时间:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:partMemberInfoInstance,field:'workDate','errors')}">
                                    <g:datePicker name="workDate" value="${partMemberInfoInstance?.workDate}" precision="day" ></g:datePicker>
                                </td>
                            </tr> 
							
							<tr class="prop">
                                <td valign="top" class="name">
                                    <label for="joinDate">入党时间:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:partMemberInfoInstance,field:'joinDate','errors')}">
                                    <g:datePicker name="joinDate" value="${partMemberInfoInstance?.joinDate}" precision="day" ></g:datePicker>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="post">党内职务:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:partMemberInfoInstance,field:'post','errors')}">
                                    <input type="text" id="post" name="post" value="${fieldValue(bean:partMemberInfoInstance,field:'post')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="honor">党内表彰:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:partMemberInfoInstance,field:'honor','errors')}">
                                    <g:textArea name="honor" value="${fieldValue(bean:partMemberInfoInstance,field:'honor')}" rows="4" cols="20"/>
                                </td>
                            </tr> 
                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:actionSubmit class="save" value="更改" onclick="return confirm('确定更改么?')" action="Update"/></span>
                </div>
            </g:form>
        </div>
    </body>
</html>
